package com.zsc.shixun.mapper;

import com.zsc.shixun.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zsc.shixun.model.unauthorize.AuthorityVO;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 用户表 Mapper 接口
 * </p>
 *
 * @author ZWYZY
 * @since 2020-06-06
 */
@Repository
public interface UserMapper extends BaseMapper<User> {
    @Select("select ra.auth_value as 'crudauth' from b_user u,b_role_authority ra where u.role_id=ra.role_id  and u.email=#{s}")
    List<AuthorityVO> getAuthority(String s);
}
